import { scoreSmallStatusFormat } from '@/common/format';

// 小状态格式化显示
export const smallStatusFormatter = (status, isNcaaLeague = false) => {
  const { label, disable } = scoreSmallStatusFormat(status);
  const s = Number(status);

  if (disable) return label;

  if (isNcaaLeague) {
    if (s === 11 || s === 12) return '上半场';
    if (s === 13 || s === 14) return '下半场';
  }

  return label;
};
